/**
 * 
 */
package com.ubo.java.model.classifier;


import com.ubo.java.model.IType;
import com.ubo.transform.java.IJavaVisitor;

/**
 * @author saludegu
 * 
 */
public enum EPrimitiveTypes implements IType {
	INT, FLOAT, DOUBLE, BOOLEAN, CHAR, BYTE, VOID;

	/**
	 * 
	 * @param visibility
	 * @return
	 */
	public String toString() {
		return name().toLowerCase();
	}

	/**
	 * @see com.ubo.transform.java.IJavaGenerable#generate(com.ubo.transform.java.IJavaVisitor)
	 */
	@Override
	public void generate(IJavaVisitor<?> generator) {
		generator.generate(this);
	}

	/**
	 * @see com.ubo.java.model.IType#generationNeeded()
	 */
	@Override
	public boolean generationNeeded() {
		return false;
	}
}
